/*
 * Powered By dico
 * Since 2017 - 2018
 */
package com.seeyoui.kensite.bussiness.orderlang.purchaserUser.persistence;

import java.util.List;
import java.util.Map;

import com.seeyoui.kensite.bussiness.orderlang.order.domain.OrderStatisticsVO;
import com.seeyoui.kensite.bussiness.orderlang.purchaserUser.domain.PurchaserUser;
import com.seeyoui.kensite.bussiness.orderlang.reject.domain.RejectStatisticsVO;

/**
 * PurchaserUser
 * @author dico
 * @version 2.0
 * @since 1.0
 * @date 2018-02-08
 */

public interface PurchaserUserMapper {

	/**
	 * 根据ID查询单条数据
	 * @param id
	 * @return
	 */
	public PurchaserUser findOne(String id);
	
	/**
	 * 查询订单客户数
	 * @param map
	 * @return
	 */
	public OrderStatisticsVO findOrderCustomer(Map<Object, Object> map);
	
	/**
	 * 查询退单客户数
	 * @param map
	 * @return
	 */
	public RejectStatisticsVO findRejectCustomer(Map<Object, Object> map);
	
	/**
	 * 查询数据集合
	 * @param purchaserUser
	 * @return
	 */
	public List<PurchaserUser> findList(PurchaserUser purchaserUser);
	
	/**
	 * 查询所有数据集合
	 * @param purchaserUser
	 * @return
	 */
	public List<PurchaserUser> findAll(PurchaserUser purchaserUser);
	
	/**
	 * 查询数据总数
	 * @param purchaserUser
	 * @return
	 */
	public int findTotal(PurchaserUser purchaserUser);

	/**
	 * 查询数据总数排除当前数据
	 * @param purchaserUser
	 * @return
	 */
	public int findExTotal(PurchaserUser purchaserUser);
	
	/**
	 * 数据新增
	 * @param purchaserUser
	 */
	public void save(PurchaserUser purchaserUser);
	
	/**
	 * 数据修改
	 * @param purchaserUser
	 */
	public void update(PurchaserUser purchaserUser);
	
	/**
	 * 数据删除
	 * @param listId
	 */
	public void delete(List<String> listId);
	
	/**
	 * 数据假删除
	 * @param purchaserUser
	 */
	public void remove(PurchaserUser purchaserUser);
	
}